package com.so206.mapper;

import com.so206.po.SystemSett;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface SystemSettMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SystemSett record);

    int insertSelective(SystemSett record);

    SystemSett selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SystemSett record);

    int updateByPrimaryKey(SystemSett record);

    SystemSett selectByUid(@Param("uid") Long uid);

    List<SystemSett> selectByUid2(@Param("uid") Long uid);

    List<SystemSett> selectByStatus(@Param("status") Integer status);

    List<SystemSett> selectByIsSett(@Param("sett") Integer sett);

    List<SystemSett> selectByUidTimes(@Param("uid") Long uid, @Param("start_time") Date start_time,
                                      @Param("stop_time") Date stop_time, @Param("status") Integer[] status);


}